package com.example.guavaSrudy.BasicEvent.deadEvents;


import com.google.common.eventbus.DeadEvent;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import com.sun.istack.internal.logging.Logger;

public class DeadEventSubscriber {

    private static final Logger loger = Logger.getLogger(DeadEventSubscriber.class);

    public DeadEventSubscriber(EventBus eventBus) {
        eventBus.register(this);
    }

    @Subscribe
    public void handleUnsubscribedEvent(DeadEvent deadEvent) {
        loger.warning("No subscribers for " + deadEvent.getEvent());
    }
}
